Šime,
$('title').html() works fine in both IE8 and FF, fixing my problem.
But I don't understand why the difference in behaviour on title:
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
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.
I think document.title works on all browsers.
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
4 matches
Mail list logo