Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Special Characters Linting Issue

Explorer ,
Jul 12, 2017 Jul 12, 2017

Copy link to clipboard

Copied

I keep getting the same error repeatedly and I can't figure out what the problem is. For each of these entries I get the same error, saying that special characters must be escaped, and showing a tag open symbol, but I have no extra open tags that I can see. I need a fresh pair of eyes. The error on line 287 is the same, but it shows the closing tag as being the issue.

Screen Shot 2017-07-12 at 8.24.16 PM.png

Can anyone spot the trouble?

Views

606
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 12, 2017 Jul 12, 2017

Copy link to clipboard

Copied

Now an EX-MVP  (Hope I'm not breaking any rules)

You're missing the closing > at the end of your opening <div (see in red below):

<div class="tp-caption tp-resizeme">

EDITED

Actually thats not the case I see the > 'burried' now a little later on in the code sequence.

I don't know if this is legitimate but try surrounding your multiple data, which is inside the "[     ]" with just the single pair '     ' of quotes NOT the double pair (see below):

<div class="tp-caption tp-resizeme"

data-x="['left','center','center','left']"

data-hoffset="['375','-250','-250','135']"

data-y="['top','middle','middle','top']"

dat-voffset="['0','0','0','0']"

data-width="none"

data-height="none"

data-whitespace="nowrap"

data-visibility="['on','on','on','off']"

data-transform_idle="o:1;"

data-transform_in="y:bottom;s:250;e:Power3.easeInOut;"

data-transform_out="y:top;s:300;s:300;"

data-start="1200"

data-responsive_offset="on">

<img src="images/banner/line_o2.png" alt="Nov Build Pros" />

</div>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2017 Jul 13, 2017

Copy link to clipboard

Copied

Linting prefers double quotes.  But you can change it in Preferences.  See screenshot.

"attr-value-double-quotes": false,

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2017 Jul 13, 2017

Copy link to clipboard

Copied

https://forums.adobe.com/people/Nancy+OShea  wrote

Linting prefers double quotes.  But you can change it in Preferences.  See screenshot.

Now an EX-MVP (Hope I'm not breaking any rules)

It obviously doesnt when its double trouble """" that throws the escape error, if you use "''" that throws no errors, however I don't know if that is correct syntax as I don't know much about data-blah=""

This is ok: data-blah="somecode" but this would throw the escape error - data-blah="["on","on","on","off"]" whilst the single quote version data-blah="['on','on','on','off']" would not.

I mean I'm only guessing basing on php throwing errors in certain situations where you have to use single quotes ' if you open with a double " quote.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 16, 2017 Jul 16, 2017

Copy link to clipboard

Copied

I just completely turned Linting off. I run it through Wc3 anyway before publishing, and any errors can be fixed there. Doing it then prevents me from going batty looking at silly little errors during design.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 16, 2017 Jul 16, 2017

Copy link to clipboard

Copied

barbrab  wrote

I just completely turned Linting off.

Sometimes I do the same.  It depends on what I'm working on.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 17, 2017 Jul 17, 2017

Copy link to clipboard

Copied

barbrab  wrote

I just completely turned Linting off. I run it through Wc3 anyway before publishing, and any errors can be fixed there. Doing it then prevents me from going batty looking at silly little errors during design.

I don't treat linting that seriously. It helps a bit but don't become complacent and rely on it.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 17, 2017 Jul 17, 2017

Copy link to clipboard

Copied

LATEST

I haven't had linting turned on (aside from attempting to help in the forums from time to time) since it was added to the program.

It was much more useful early on, when it ran on open, edit and save. You could see "errors" (some of them just aren't) light up the line number right away as you made a mistake. Now, with it only firing on Save, it's pretty much useless to me.

My favorite error catcher is still the HTML validator add on for Firefox.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines