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

Special character must be escaped but I can't find the error

New Here ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

special charcaters escaped.JPG

I'm not really sure why I'm getting this error on dreamweaver. Everything seems to be running fine but I keep gettting this error. Anyone know why?

TOPICS
Bootstrap , Code , Error

Views

534

Translate

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 ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

It's most likely to be that the Dreamweaver validator doesn't understand - data-group="["pruning"]

If its only that which evokes a validation error then forget it and move on.

Test by removing them

 

Votes

Translate

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 ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

These are illegal characters for the data- attribute (outside of the quotation marks)

 

junk.jpg

Wappler, the only real Dreamweaver alternative.

Votes

Translate

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 ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

I don't know what 'data-group [ ]' is myself but the [ ] are not illegal after investigation, Jon is most likely onto something with the double/single quote aspect.

 

EDITED:

Maybe the brackets ARE illegal (persoanlly I've never come across them before myself) I was getting some feedback from an old post on Google where it looks like someone else is using them for some reason, or trying to use them:

https://stackoverflow.com/questions/34154181/jquery-expression-for-data-group

 

But I cant find any reference anywhere else much.

Votes

Translate

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 ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

The syntax for the data- attribute is

data-name="data value"

 

Where name cannot be in capitals and datavalue can be any string. The use of brackets within the datavalue can be associated with a framework.

Wappler, the only real Dreamweaver alternative.

Votes

Translate

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 ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

LATEST

'Associated with a framework' well there you go, does nothing work these days without one of them being involved????? Everything one seems to view these days requires some kind of 'extra' package, mostly package's' just to do the basics.

 

 I was just exploring something the other day and before I could get passed 'ground zero' I needed to install 'Brew' and then after that 'Composer' then after that I need this package and that package, its a ****** joke!

Votes

Translate

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 ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

DW's validator wants you to write the following...

data-groups=["pruning"]

...as something along the lines of...

data-groups="['pruning']"

...with alternating double and single quote pairs.

Votes

Translate

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