Re: [xml] HTMLparser and namespaces



On Wed, Oct 26, 2005 at 12:25:44PM +1000, Michael Day wrote:

Hi,

What is the status of namespaces in HTMLparser?

Currently, the following HTML will produce an error message:

    <p xmlns:foo="blah"></p>

    error: Namespace prefix xmlns of attribute foo is not defined

It seems to be treating "xmlns" as a generic namespace prefix, rather than
recognising that this is in fact defining the "foo" namespace prefix.

If namespaces are supposed to be supported by the HTMLparser then this
behaviour should be changed to correctly process the definition.

Alternatively, if the HTMLparser is not supposed to process namespaces
then this should just be treated as a simple "xmlns:foo" attribute.

  Agreed, this is bogus, probably due to the HTML SAX default handler
reuse of parts of XML handler. The correct way is to disable any
namespace processing from the HTML parser, i.e. not try to even look up
for : in attributes names.

  Please bugzilla,

   thanks !

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]