Re: How can I implement this feature in Mozilla htmlparser?

byang <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <[email protected]>
On 9月15日, 下午10时41分, Boris Zbarsky <[email protected]> wrote:
> byang wrote:
> >    I want all the children of the <meter> elements to be ignored but I
> > need the text in the children elements.
>
> Er.... why exactly?  That seems like a really odd thing to want, and not
> at all compatible with, say, XHTML.

For example, a user who want to use <meter> element will consider that
there are some browsers which not support this element, so he will
write:

<meter> <span> 50% </span> </meter>

so, when there is a browser which not support <meter> element, it will
just ignore it and display 50% in the web page. And for a browser
which understand the <meter> element, it should not render the <span>
element but still have to know the text (50%) in the <span> to render
the <meter> . So, I ask the above question from this situation...

And the spec for <meter> element is at : http://www.w3.org/html/wg/html5/#the-meter

Thanks Boris!

Regards!
Bo

_______________________________________________
dev-tech-dom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-dom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.