Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Unexpected non-space characters. Expected DOCTYPE for CSS file #139

Closed
DartBot opened this issue Jun 5, 2015 · 8 comments
Closed

Unexpected non-space characters. Expected DOCTYPE for CSS file #139

DartBot opened this issue Jun 5, 2015 · 8 comments

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<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.
Added Pkg-Polymer, Area-Pkg labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<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.
Removed Priority-Unassigned label.
Added Priority-Low, NeedsInfo labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi


Siggi,
you are right. A hint would be great. I'm somehow prone to such errors :-/

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<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.
Added Polymer-Milestone-Later label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<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.
Added PolymerMilestone-Later label.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants