A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00081.html below:

Re: Lowercasing of tag/attribute names

James Graham wrote:
> I have a patch in my tree that moves lowercasing of tag/attribute names 
> back into the tokenizer class rather than being part of the 
> normalizeToken method in the parser class. The case foling is controlled 
> by an attribute so the XML parser is able to switch of case folding. 
[...]
> 
> Are there any strong objections to checking in this change? It passes 
> our existing tests.
OK, for reasons too tedious to mention I stuffed up and managed to 
accidentally skip running the sanitizer tests last night and so I've 
discovered there are a few remaining issues I need to sort out. However 
it would be nice to get some input onto the exact semantics you want 
from the sanitizer:

At the moment all element and attribute name comparisons relative to 
case in the original source document whereas, in HTML, names in the tree 
are lowercase regardless of the original source. Does the current setup 
make sense or should we compare names as they will appear in the DOM?

At present MathML and SVG elements and attributes are (by default) 
retained even if the output is supposed to be HTML. Is this what we want?

Tests that involve escaping unsafe content sometimes assume a particular 
attribute order in the output. Is doing a full string comparison 
necessary or could we just do something like "assert '<script>' not in 
output"?

-- 
"Mixed up signals
Bullet train
People snuffed out in the brutal rain"
--Conner Oberst

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to html5lib-discuss@googlegroups.com
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4