Well, maybe the guys at jQuery optimized the text method only for
elements that can appear more than once... I don't know.
However, text() should not be used for TITLE anyway, so this "bug" is
not a problem.
Šime,
$('title').html() works fine in both IE8 and FF, fixing my problem.
But I don't understand why the difference in behaviour on :
surely if there's only one title element than the innerHTML of the first
matched element should be the same as the concatenated innerHTML of all
matched elemen
The, html() method works in all browsers...
text() = returns the concatenated innerHTML properties of all matched
elements
html() = returns the innerHTML property of the first matched element
Generally you don't use text() to retreive the contents of an
element...
BUT, if you want to write to th
I think document.title works on all browsers.
4 matches
Mail list logo