Closed Bug 343357 Opened 18 years ago Closed 14 years ago

Support setting option.innerText

Categories

(Core :: DOM: Core & HTML, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 264412

People

(Reporter: ddkilzer, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

Firefox 1.5.0.4 does not support setting option.innerText to change the visible rendering of an <option> tag.

This method is supported in MSIE 6.0 on Win XP SP2 and Safari 2.0.4 on Mac OS X 10.4.7.

Note that setting option.innerHTML does work, though.
Component: DOM: HTML → DOM: Mozilla Extensions
innerText is called textContent in Firefox (and in the standards).

HTML5 will probably add innerText as a synonym though.
For more complicated situations, innerText is quite different from textContent. 

IE and WebKit for instance won't include text content of non visible elements, will add newlines around block elements and other stuff. See http://trac.webkit.org/browser/trunk/WebCore/editing/TextIterator.cpp
Assignee: general → nobody
QA Contact: ian → general
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: