> Good question. I've noticed this with a few elements we define (like
> HTMLItalicElement, HTMLStrongElement, etc). According to
> http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-section-element,
> <section> uses HTMLElement (as do the other ones I mentioned), so it looks
> like we'll need to create alternate CacheableWrapper implementations for
> them that call HTMLElementBinding::Wrap (since the HTMLElement binding is
> already generated).

Thank you.
Simply, can we change to treat <section> tag as HTMLElement without
handling HTMLSectionElement? like:
```
@/src/components/script/html/hubbub_html_parser.rs

-handle_element!(cx, tag, "section", HTMLSectionElementTypeId,
HTMLSectionElement, []);
+handle_element!(cx, tag, "section", HTMLElementTypeId, HTMLElement, []);

```

2013/8/7 Josh Matthews <j...@joshmatthews.net>:
> Good question. I've noticed this with a few elements we define (like
> HTMLItalicElement, HTMLStrongElement, etc). According to
> http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#the-section-element,
> <section> uses HTMLElement (as do the other ones I mentioned), so it looks
> like we'll need to create alternate CacheableWrapper implementations for
> them that call HTMLElementBinding::Wrap (since the HTMLElement binding is
> already generated).
>
>
> On 08/07/2013 10:34 AM, Tetsuharu OHZEKI wrote:
>>
>> Josh,
>>
>> HTMLSectionElement.webidl is no in
>> http://mxr.mozilla.org/mozilla-central/source/dom/webidl/. And
>> HTMLSectionElement is not defined by current specs: whatwg HTML, w3c
>> HTML5, w3c HTML5.1.
>> How do we care about it?
>>
>>
>> 2013/8/7 Josh Matthews <j...@joshmatthews.net>:
>>>
>>> To ensure that no redundant work occurs, I've put up a list at
>>>
>>> https://github.com/mozilla/servo/wiki/HTMLElement-binding-conversion. If
>>> you're going to convert an element, put your name next to it. Once it's
>>> done, strike through it. If newcomers appear looking for things to work
>>> on,
>>> this is an excellent source of small tasks.
>>> _______________________________________________
>>> dev-servo mailing list
>>> dev-servo@lists.mozilla.org
>>> https://lists.mozilla.org/listinfo/dev-servo
>>
>>
>>
>>
>
> _______________________________________________
> dev-servo mailing list
> dev-servo@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-servo



-- 
saneyuki_s
saneyuki.s.s...@gmail.com
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to