It’s just data

Beware of the New Line

After all these years, two separate Python runtime library bugs affected me in one day.  This one caused the Feed Validator to blow up, but now has a workaround.  Here’s a simple test case:

from xml.dom import minidom
minidom.parseString('<foo:bar xmlns:foo="http://example.com/\nboom"/>')

And in unrelated news, the SYO top100 planet saw it’s first non-wellformedness error this morning, from an unexpected direction.  Take a look at Chris Pirillo’s page... elements with both HREF and href attributes.  The UFP lowercased the attribute names and voilà... duplicate attributes.  This, too, has since been fixed.


I wonder if your recent bugs are covered in

whatwg.org/specs/web-apps/current-work/#parsing

I’m not sure where the unit tests live. maybe somewhere in

www.hixie.ch/tests/

Posted by Robert Sayre at

Wha? What’d I do wrong, and how should I fix it? :)

Posted by Chris Pirillo at

Chris: don’t sweat it.

Your links on that particular entry have both HREF and href attributes, which to my knowledge doesn’t cause anybody any problems except for those who attempt to convert your page from HTML to XHTML...  and I’m probably the only one in the world who is insane enough to attempt that, and I’ve already made a fix.

Posted by Sam Ruby at

I’m not sure where the unit tests live. maybe somewhere in www.hixie.ch/tests/

You won’t find HTML5 parsing tests there. The largest collections of HTML5 test cases are fantasai’s tests (slightly modified by me) and Anne van Kesteren’s WF 2.0 tests. Neither test suite tests the error recovery features of the HTML5 parsing algorithm.

If there are other test cases, please let me know.

Posted by Henri Sivonen at

Take a look at Chris Pirillo’s page... elements with both HREF and href attributes.

Why would anyone do that? I can’t even fathom!

Wha? What’d I do wrong, and how should I fix it? :)

I’m assuming this was some kind of weird cut and paste error, judging by the blockquote.

I’m probably the only one in the world who is insane enough to attempt that, and I’ve already made a fix.

Sam, your insanity makes for very interesting reading. Keep it up.

Posted by Justin Watt at

Add your comment