History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AJF-25
Type: Task Task
Status: Closed Closed
Resolution: Incomplete
Priority: Major Major
Assignee: Florian Traverse
Reporter: Florian Traverse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Archetype

Loading script : respect the standards when using defer

Created: 06/Mar/08 04:49 PM   Updated: 18/Jun/08 10:37 AM
Component/s: Website
Affects Version/s: 0.1.5, Trunk, Experimental
Fix Version/s: 0.8.0-beta, 0.8.0


 Description  « Hide
Tried to validate the Slidy Fosdem presentation, here is a sum up of repeated errors:

# Error Line 10, Column 178: syntax of attribute value does not conform to declared value.

...conf.js" charset="iso-8859-1" defer=""/>

The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the "selected" attribute must be either minimized as "selected" or spelled out in full as "selected="selected""; the variant "selected=""" is not allowed.
# Error Line 10, Column 178: value of attribute "defer" cannot be ""; must be one of "defer".

...conf.js" charset="iso-8859-1" defer=""/>


The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the "selected" attribute must be either minimized as "selected" or spelled out in full as "selected="selected""; a value like "selected="true"" is not allowed.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Florian Traverse - 07/Mar/08 12:39 PM
Tried to force defer="defer" when inserting using DOM. Anyway, it just produces defer="".

DOM does not provide a valid xhtml.

I've just removed it for the moment (it's a loading optimisation).

Florian Traverse - 08/May/08 04:09 PM
Won't fix ATM : in order to solve this, we would have to solve a browser bug ... or to do a whole new script insertion system, not relying on browser abilities to handle correctly the DOM.

If we look at https://bugzilla.mozilla.org/show_bug.cgi?id=28293 this browser issue is something unreliable through the different browsers :

- Any script in IE6 that is defined in the head is deferred by default.
- In FF, defer is just not taken in account

I don't know how other browser reacts to this tag, but one of the part of Archetype is to not have to take in account these difference and it does this pretty well without using this tag. I vote for removing defer from our loading code and my next commit will remove it unless Swiip (or anyone) has some particular use case where Acrhetype does not handle correctly the loading process without it.