Unexpected non-space characters. Expected DOCTYPE for CSS file #139
Comments
<img src="https://avatars.githubusercontent.com/u/1343914?v=3" align="left" width="48" height="48"hspace="10"> Comment by sgjesse Added Area-Polymer, Triaged labels. |
<img src="https://avatars.githubusercontent.com/u/1081711?v=3" align="left" width="48" height="48"hspace="10"> Comment by jmesserly Removed Area-Polymer label. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Hey @gzoechi, by any chance did your example use an html-import instead of a stylesheet import? I get the warning if I try a <link rel="import" href="a.css">, but not if I have <link rel="stylesheet" href="a.css"> We could add some validation in the linter to ensure that the linked files are .html files, though. Added this to the Later milestone. |
<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi Siggi, |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Added Polymer-P-2 label. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Removed this from the Later milestone. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Removed Polymer-P-2 label. |
<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch Removed Polymer-Milestone-Later label. |
<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="96" height="96"hspace="10"> Issue by zoechi
Originally opened as dart-lang/sdk#17553
What steps will reproduce the problem?
1.
[Warning from ImportInliner on polymer_ui_elements|example/polymer_ui_splitter.html]:
package:polymer_elements/polymer_flex_layout/polymer_flex_layout.css:1:1: Unexpected non-space characters. Expected DOCTYPE.
2.
3.
What is the expected output? What do you see instead?
CSS files don't need a DOCTYPE
What version of the product are you using? On what operating system?
Dart VM version: 1.3.0-dev.4.1 (Sun Mar 16 11:47:03 2014) on "linux_x64"
Polymer 0.10.0-pre.2
Please provide any additional information below.
The weird thing is I have several CSS files in my project, but this is the only file I get this warning.
I also tried to delete the file and created a new one in DartEditor (copy/paste the content).
css file: https://github.com/ErikGrimes/polymer_elements/blob/master/lib/polymer_flex_layout/polymer_flex_layout.css
The text was updated successfully, but these errors were encountered: