[whatwg] HTMLDocument.title and SVGDocument
Ian Hickson
ian at hixie.ch
Mon Jun 4 22:33:52 PDT 2007
On Fri, 1 Jun 2007, Maciej Stachowiak wrote:
> >
> > I basically see two options: HTMLDocument.title always wins, and you
> > can get the other one using getFeature(), or, they both get redefined
> > to check the root element and dispatch to the other one if
> > appropriate. Suggestions?
>
> I like the "check the root element" option. That way, one could use the
> exact same Document object implementation for SVG and XHTML, while
> remaining compatible with expected behavior for existing content in both
> languages. Compound documents where both the HTML and the SVG have a
> title are possible, but that seems obscure enough that a special DOM API
> to get both titles is probably unnecessary.
On Sat, 2 Jun 2007, Anne van Kesteren wrote:
>
> Even in that case only one title can be the document title.
On Sat, 2 Jun 2007, Maciej Stachowiak wrote:
>
> If we define which is the document title in such cases than both
> HTMLDocument and SVGDocument returning that seems better than separate
> results.
Done.
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list