[XML-SIG] [ pyxml-Bugs-555303 ] Sgmlop.HtmlParser uppercases all names

noreply@sourceforge.net noreply@sourceforge.net
Sun, 12 May 2002 22:09:27 -0700


Bugs item #555303, was opened at 2002-05-12 22:09
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=555303&group_id=6473

Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sgmlop.HtmlParser uppercases all names

Initial Comment:
Sgmlop.HtmlParser uppercases all element and attribute names, 
making it difficult to treat HTML and XHTML equivalently.

For example, If I write an XPath expression, I have to be aware of 
whether it's being applied to XHTML or HTML, because 
Sgmlop.HtmlParser expects 

/HTML/HEAD/LINK[@TYPE="application/xml"]/@HREF

whereas if it's XHTML, I need to use

/html/head/link[@type="application/xml"]/@HREF

with PyExpat.

Suggested fix is to lowercase element and attribute names in 
Sgmlop.HtmlParser.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=555303&group_id=6473