5
edits
No edit summary |
No edit summary |
||
| Line 45: | Line 45: | ||
*Element 0 is the body tag. | *Element 0 is the body tag. | ||
*Non printing tags | *Non printing tags such as: script and a(with name attribute) should never be counted. | ||
*If no printing characters are encountered between the opening tag and either the same elements closing tag or another elements opening tag it should not be counted. | *Visible non text tags such as img, object and canvas should always be counted.<br> | ||
*Table rows (tr) should always be counted unless they do not contain any th or td tags. The tags td and th should not be counted, however if tags within td and th should be counted provided they fit the other rules. | |||
*If no printing characters are encountered between the opening tag and either the same elements closing tag or another elements opening tag it should not be counted. | |||
*Unenclosed text nodes should be counted as if they were surrounded by span. | *Unenclosed text nodes should be counted as if they were surrounded by span. | ||
| Line 55: | Line 57: | ||
<body><div class="nocount"><p>This is element #1</p><p>This is element #2</p><p class="nocount"></p><p>This is element #3</p><p class="nocount"><span>This is element #4</span>This is element #5 </p><div><body> | <body><div class="nocount"><p>This is element #1</p><p>This is element #2</p><p class="nocount"></p><p>This is element #3</p><p class="nocount"><span>This is element #4</span>This is element #5 </p><div><body> | ||
This would let people link to specific parts of documents that not associated with html anchor tags. | This would let people link to specific parts of documents that are not associated with any html anchor tags. | ||
| E. Kaan Atakan ([[User:KaanTM|KaanTM]]) | | E. Kaan Atakan ([[User:KaanTM|KaanTM]]) | ||
edits