2009/7/28 Brandon Aaron :
>
> On Mon, Jul 27, 2009 at 7:47 PM, Gaël
> Pasgrimaud wrote:
>> This should work on all browser since you always have a head tag in a
>> html document.
>
> I don't think HTML 5 requires a head tag to be valid. This article by
> Remy Sharp seems to agree (
> http://html5d
Generally speaking we can assume that if
document.documentElement.insertBefore(newChild,
document.documentElement.lastChild)
always works as expected, the search for the head tag is redundant/useless
indeed.
Regards
On Wed, Aug 5, 2009 at 9:14 AM, Gaël Pasgrimaud
wrote:
>
> On Tue, Jul 28, 200
On Tue, Jul 28, 2009 at 3:00 AM, Brandon Aaron wrote:
>
> On Mon, Jul 27, 2009 at 7:47 PM, Gaël
> Pasgrimaud wrote:
>> This should work on all browser since you always have a head tag in a
>> html document.
>
> I don't think HTML 5 requires a head tag to be valid. This article by
> Remy Sharp seem
On Mon, Jul 27, 2009 at 7:47 PM, Gaël
Pasgrimaud wrote:
> This should work on all browser since you always have a head tag in a
> html document.
I don't think HTML 5 requires a head tag to be valid. This article by
Remy Sharp seems to agree (
http://html5doctor.com/html-5-boilerplates/ ).
--
Bra
Here is another patch:
3476,3477c3476,3482
< var head = document.getElementsByTagName("head")[0];
< var script = document.createElement("script");
---
> var doc = document;
> var head = doc.getElementsByTagNam
On Mon, Jul 27, 2009 at 9:04 PM, John Resig wrote:
> Yeah, I'm with Andrea here - that seems much safer (and more generic). Gael
> - can you verify that this change works for you?
>
> --John
>
>
> On Mon, Jul 27, 2009 at 2:23 PM, Andrea Giammarchi
> wrote:
>>
>> var head = doc.getElementsByTagNam
Yeah, I'm with Andrea here - that seems much safer (and more generic). Gael
- can you verify that this change works for you?
--John
On Mon, Jul 27, 2009 at 2:23 PM, Andrea Giammarchi <
andrea.giammar...@gmail.com> wrote:
> var head = doc.getElementsByTagName("head")[0] || doc.documentElement;
>
var head = doc.getElementsByTagName("head")[0] || doc.documentElement;
???
On Thu, Jul 23, 2009 at 11:42 PM, Gaël Pasgrimaud wrote:
>
> Hi,
>
> I'm using jQuery in a Firefox extension to modify the current
> document. It work great.
> I only have problems with ajax request.
>
> When you use get