source: trunk/Source/WebCore/ChangeLog @ 107883

Revision 107883, 3.3 MB checked in by commit-queue@webkit.org, 3 years ago (diff)

Add support for the translate attribute in html elements.
https://bugs.webkit.org/show_bug.cgi?id=78751

Patch by Pablo Flouret <pablof@motorola.com> on 2012-02-15
Reviewed by Adam Barth.

The translate attribute is used to specify whether an element's
attribute values and the values of its Text node children are to be
translated when the page is localized, or whether to leave them
unchanged.

Details at http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#attr-translate

Source/WebCore:

Test: fast/dom/HTMLElement/translate.html

  • html/HTMLAttributeNames.in:
  • html/HTMLElement.cpp:

(WebCore::HTMLElement::translateAttributeMode):
(WebCore):
(WebCore::HTMLElement::translate):
(WebCore::HTMLElement::setTranslate):

  • html/HTMLElement.h:

(HTMLElement):

  • html/HTMLElement.idl:

LayoutTests:

  • fast/dom/HTMLElement/translate-expected.txt: Added.
  • fast/dom/HTMLElement/translate.html: Added.
  • Property svn:eol-style set to native

HTML preview not available, since the file size exceeds 262144 bytes. Try downloading the file instead.

Note: See TracBrowser for help on using the repository browser.