Closed
Bug 1011123
Opened 11 years ago
Closed 11 years ago
[FTU] Remove unneeded script types
Categories
(Firefox OS Graveyard :: Gaia::First Time Experience, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.0 S2 (23may)
People
(Reporter: kgrandon, Assigned: kgrandon)
Details
(Whiteboard: [systemsfe],[p=1])
Attachments
(1 file)
There are a lot of type="text/javascript" in the FTU index file. We've been removing them from other applications, so I think we should remove them from here as well.
| Assignee | ||
Comment 1•11 years ago
|
||
Hey - quick review anyone? Thanks!
Attachment #8423287 -
Flags: review?(francisco.jordano)
Attachment #8423287 -
Flags: review?(21)
Comment 2•11 years ago
|
||
Comment on attachment 8423287 [details] [review]
Github pull request
I'm fine with all the text/javascript stuff removed. R+ if you keep the text/css bits though.
Attachment #8423287 -
Flags: review?(21) → review+
| Assignee | ||
Updated•11 years ago
|
Attachment #8423287 -
Flags: review?(francisco.jordano)
| Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) (:21) (NOT reading bugmails, needinfo? please) from comment #2)
> Comment on attachment 8423287 [details] [review]
> Github pull request
>
> I'm fine with all the text/javascript stuff removed. R+ if you keep the
> text/css bits though.
Thanks. About the text/css, Everything seems to function fine without them. Also http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#attr-link-type says that it's purely advisory.
Additionally the default value is "text/css" for stylesheets: http://www.w3.org/TR/html5/links.html#link-type-stylesheet
| Assignee | ||
Comment 4•11 years ago
|
||
Vivien - are you ok with landing this with text/css removed as per comment 3?
Flags: needinfo?(21)
Comment 5•11 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #3)
> (In reply to Vivien Nicolas (:vingtetun) (:21) (NOT reading bugmails,
> needinfo? please) from comment #2)
> > Comment on attachment 8423287 [details] [review]
> > Github pull request
> >
> > I'm fine with all the text/javascript stuff removed. R+ if you keep the
> > text/css bits though.
>
> Thanks. About the text/css, Everything seems to function fine without them.
> Also
> http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#attr-
> link-type says that it's purely advisory.
>
> Additionally the default value is "text/css" for stylesheets:
> http://www.w3.org/TR/html5/links.html#link-type-stylesheet
I really don't have a strong opinion on this. Let's needinfo dbaron, and he says this is useless in our use case, let's remove it.
Flags: needinfo?(21) → needinfo?(dbaron)
Updated•11 years ago
|
Whiteboard: [systemsfe]
Yeah, given what the spec (also at http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-stylesheet ) says about the default type for link rel="stylesheet" and the fact that that's been the reality for over a decade, I think it's fine to remove the type="text/css".
Flags: needinfo?(dbaron)
| Assignee | ||
Comment 7•11 years ago
|
||
Thanks.. I'm a fan of less attributes where possible, and some apps already do this - so let's remove for now. If people get annoyed by it, or it causes any weird performance/testing issues - I'll gladly bring them back.
https://github.com/mozilla-b2g/gaia/commit/691b32151d384b955e0428911ccf1062c89f76ae
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe] → [systemsfe],[p=1]
Target Milestone: --- → 2.0 S2 (23may)
You need to log in
before you can comment on or make changes to this bug.
Description
•