The documentElement API is slightly more robust because it doesn't
assume the document has an HTML element.  For example, SVG documents
have a documentElement but no HTML element.

Adam


On Wed, Nov 4, 2009 at 10:10 AM, PhistucK <[email protected]> wrote:
> document.getElementsByTagName("HTML")[0].innerHTML
> ☆PhistucK
>
>
> On Wed, Nov 4, 2009 at 20:06, Evgeny Shadchnev <[email protected]>
> wrote:
>>
>> Sorry if I'm missing something obvious but could you give an example
>> of the code please? The content script doesn't seem to have access to
>> the html source of the page. I need the html source, not the DOM tree.
>>
>> Evgeny
>>
>> On Wed, Nov 4, 2009 at 5:43 PM, Adam Barth <[email protected]> wrote:
>> > You can execute a content script that sends the HTML back to the
>> > extension.
>> >
>> > Adam
>> >
>> >
>> > On Wed, Nov 4, 2009 at 8:23 AM, Evgeny Shadchnev
>> > <[email protected]> wrote:
>> >>
>> >> Hello,
>> >>
>> >> I'm writing an extension that needs html source of the loaded page. Is
>> >> there any way to access it? The Tab object doesn't have such property.
>> >>
>> >> Best,
>> >> Evgeny
>> >>
>> >> >>
>> >>
>> >
>>
>> >>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to