Debian Codegraph @

test/examples/u_all_cases.html

raw
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=utf-8">
4 <title>Hello World</title>
5 <base href="http://example.com/" />
6 </head>
7 <body>
8 <article class="h-entry">
9 <h1><a class="p-name">Testing variations of u-properties</a></h1>
10 <ul>
11 <!--if a.u-x[href] or area.u-x[href] or link.u-x[href], then get the href attribute -->
12 <li><a class="u-url" href="/test"></a></li>
13 <li><a class="u-url" href="http://example.com/test"></a></li>
14 <li><area class="u-url" href="/test"></li>
15 <li><area class="u-url" href="http://example.com/test"></li>
16 <li><link class="u-url" href="/test"></li>
17 <li><link class="u-url" href="http://example.com/test"></li>
18 <!--else if img.u-x[src] or audio.u-x[src] or video.u-x[src] or source.u-x[src] or iframe.u-x[src], then get the src attribute-->
19 <li><img class="u-url" src="/test"></li>
20 <li><img class="u-url" src="http://example.com/test"></li>
21 <li><audio class="u-url" src="/test"></audio></li>
22 <li><audio class="u-url" src="http://example.com/test"></audio></li>
23 <li><video class="u-url" src="/test"><source class="u-url" src="/test"></video></li>
24 <li><video class="u-url" src="http://example.com/test"><source class="u-url" src="http://example.com/test"></video></li>
25 <!--else if video.u-x[poster], then get the poster attribute-->
26 <li><video class="u-url" poster="/test"></video></li>
27 <li><video class="u-url" poster="http://example.com/test"></video></li>
28 <!--else if object.u-x[data], then get the data attribute-->
29 <li><object class="u-url" data="/test"></object></li>
30 <li><object class="u-url" data="http://example.com/test"></object></li>
31 <!-- else parse the element for the value-class-pattern. If a value is found, get it-->
32 <!-- no test case -->
33 <!-- else if abbr.u-x[title], then get the title attribute-->
34 <li><abbr class="u-url" title="/test">CHEESE</abbr></li>
35 <li><abbr class="u-url" title="http://example.com/test">CHEESE</abbr></li>
36 <!-- else if data.u-x[value] or input.u-x[value], then get the value attribute-->
37 <li><data class="u-url" value="/test"></data></li>
38 <li><data class="u-url" value="http://example.com/test"></data></li>
39 <li><input class="u-url" value="/test"></li>
40 <li><input class="u-url" value="http://example.com/test"></li>
41 <!-- else get the textContent of the element after removing all leading/trailing whitespace and nested <script> & <style> elements-->
42 <li><p class="u-url">/test</p></li>
43 <li><p class="u-url">http://example.com/test</p></li>
44 <li><p class="u-url"> /test </p></li>
45 <li><p class="u-url"> /test<script>dsjfskjflkds</script> </p></li>
46 </ul>
47 </article>
48 </body>