Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1>WCAG Parsing Bookmarklet</h1>
<p> <a href='javascript:(function(){var removeNg=true;var filterStrings=["tag seen","Stray end tag","Bad start tag","violates nesting","Duplicate ID","first occurrence of ID","Unclosed element","not allowed as child of","unclosed elements","not allowed on element","unquoted attribute value","Duplicate attribute","tabindex must not", "not appear as a descendant of"];var filterRE,root,results,result,resultText,i,cnt=0;filterRE=filterStrings.join("|");root=document.getElementById("results");if(!root){alert("No results container found.");return}results=root.getElementsByTagName("li");for(i=0;i<results.length;i++){result=results[i];if(result.className!==""){resultText=(result.innerText!==undefined?result.innerText:result.textContent)+"";if(resultText.match(filterRE)===null){result.style.display="none";result.className=result.className+" steveNoLike";cnt++}else if(removeNg==true){if(resultText.indexOf("not allowed on element")!==-1&&(resultText.indexOf("ng-")!==-1&&resultText.indexOf("ng-")<resultText.indexOf("not allowed on element"))){result.style.display="none";result.className=result.className+" steveNoLike";cnt++}}}}alert("Complete. "+cnt+" items removed.")})();'>WCAG parsing only</a>
  
<p>Updated 09/06/21</p>
  
  <h2>Trying out the parsing only bookmarklet</h2>
<ol>
 	<li>Save the WCAG parsing only as a bookmark.</li>
 	<li>Save the <a href="https://validator.w3.org/nu/about.html#extras">Check serialized DOM of current page</a> </li>
 	<li>Check a page (<a href="https://cdpn.io/stevef/debug/YzZyLqo">test page</a>) using the <i>Check serialized DOM of current page bookmarklet</i>)</li>
  <li>Once the results page is displayed activate the Parsing bookmarklet</li>
 	<li>The results will be filtered to provide a rough subset of the validation results that represent <a href="https://www.w3.org/TR/WCAG21/#parsing">WCAG 2.x 4.1.1 Parsing</a> fails.</li>
 	<li>To view the unfiltered list of results again - refresh the page</li>
 	<li>you can download the <a href="https://github.com/stevefaulkner/wcagparsing/blob/master/bookmarklet">parsing.js</a> code from Github.</li>
</ol>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console