Le 18 févr. 2009 à 20:25, Ian Hickson a écrit :
On Tue, 25 Nov 2008, Mark Baker wrote:
I know, but neither a "Document" nor an infoset are relevant to the
definition of a markup language. Both can be used after the document
has been parsed and interpreted, but neither need be referenced
prior to
that point.
I don't really understand in what sense there is anything to talk
about
before the document has been parsed and interpreted.
First it has to be written from nothing. It's why people are found of
the notion of markup language. There is everything to say before the
document has been parsed and interpreted.
In what sense is there no DOM? The document is still a tree, it
still has
elements, they still have attributes.
When people are writing documents, they are not writing a DOM. They
just put text in between brackets.
HTML is the music. The angle brackets and so forth are just one way to
write the HTML down for interchange.
Ideas are the music.
Expressing the music can happen through an instrument, through a
mechanical mathematical description, through a series of bit, through
an abstract model.
Ok. So can we get a DOM-independent definition of "browsing
context"?
That would satisfy me, at least for that aspect of iframe's
definition
(and any other element whose definition references browsing
contexts).
I don't know what you mean by "DOM-independent".
maybe like this:
<> <http://purl.org/dc/elements/1.1/title> "HTML 5".
<> <exterms:paragraph> "The content of this document is also
available as a single HTML file." .
…
or something like this
Title: HTML 5
Paragraph: The content of this document is also available as a single
HTML file.
The thing is not because you write this text below, that you have a DOM.
<html>
<title>HTML 5</title>
<p>The content of this document is also available as a single HTML
file.</p>
</html>
--
Karl Dubost
Montréal, QC, Canada
http://twitter.com/karlpro