W3C home > Mailing lists > Public > public-html-xml@w3.org > January 2011

Re: Understanding HTML5 parsing

From: David Carlisle <davidc@nag.co.uk>
Date: Thu, 06 Jan 2011 15:25:29 +0000
Message-ID: <4D25DEE9.2010405@nag.co.uk>
To: Norman Walsh <ndw@nwalsh.com>
Cc: public-html-xml@w3.org
On 06/01/2011 15:10, Norman Walsh wrote:

 > And, moving into the way elements with specific local names are
 > recognized, is this:
 >    <div>
 >      <para xmlns="http://docbook.org/ns/docbook">
 >         This is some<link>text</link>.
 >      </para>
 >    </div>
 > Like this:
 >    <div xmlns="http://www.w3.org/1999/xhtml">
 >      <para>
 >         This is some
 >         <link></link>
 >         text.
 >      </para>
 >    </div>

maybe I should leave this to Henri but I think that is equivalent to

   <div xmlns="http://www.w3.org/1999/xhtml">
     <para xmlns="http://docbook.org/ns/docbook">
        This is some <link>text.

where xmlns="http://docbook.org/ns/docbook" is an attribute not a 
namespace decln.

 > Or can I get the content of the script parsed into the DOM object I
 > might naively expect such that I can access it with JavaScript?

only by calling the xml parser explicitly on the string content of the 
element, as far as I know.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
Received on Thursday, 6 January 2011 15:34:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:27 UTC