Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DartBot opened this issue Mar 18, 2014 · 9 comments
Closed

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

DartBot opened this issue Mar 18, 2014 · 9 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) P3 A lower priority bug or feature request

Comments

@DartBot
Copy link

DartBot commented Mar 18, 2014

This issue was originally filed by @zoechi


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

@sgjesse
Copy link
Contributor

sgjesse commented Mar 18, 2014

Added Area-Polymer, Triaged labels.

@jmesserly
Copy link

Removed Area-Polymer label.
Added Pkg-Polymer, Area-Pkg labels.

@sigmundch
Copy link
Member

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 Jul 2, 2014

This comment was originally written by @zoechi


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

@sigmundch
Copy link
Member

Added Polymer-P-2 label.

@sigmundch
Copy link
Member

Removed this from the Later milestone.

@sigmundch
Copy link
Member

Removed Polymer-P-2 label.
Added Polymer-Milestone-Later label.

@sigmundch
Copy link
Member

Removed Polymer-Milestone-Later label.
Added PolymerMilestone-Later label.

@DartBot DartBot added Type-Defect P3 A lower priority bug or feature request area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) labels Jul 9, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#139.

@DartBot DartBot closed this as completed Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

4 participants