Copy link to clipboard
Copied
This issue started with the update last spring. When I would put in an HTML 5 audio tag Dreamweaver would not put in in the closing </source> tag and I would have to manually put it in. With the 2017 update it continues to fail to put the tag in and when I put it in manually it keeps saying I am missing the tag.
DW's a bit funny in this area.
For some reason it validly leaves out the ending </source> tag but at the same time, the Linting "feature" tells you your <video> or <audio> tag is missing the ending </source> tag with a "Must be paired" error.
I think this is a case of left hand not knowing what the right hand is doing. The guys working on DW's code generation got it right, while the guys working on he Linting "feature" stumbled.
You can do one of a couple things...
1. Ignore the red line numbers in
...Copy link to clipboard
Copied
Please make it known to those that can do something about it Feature Request/Bug Report Form
Copy link to clipboard
Copied
Hello Richard,
<source> is a void element so it does not need a closing tag.
Hence Dreamweaver does not close the tag on typing </ after a <source> tag.
Copy link to clipboard
Copied
DW's a bit funny in this area.
For some reason it validly leaves out the ending </source> tag but at the same time, the Linting "feature" tells you your <video> or <audio> tag is missing the ending </source> tag with a "Must be paired" error.
I think this is a case of left hand not knowing what the right hand is doing. The guys working on DW's code generation got it right, while the guys working on he Linting "feature" stumbled.
You can do one of a couple things...
1. Ignore the red line numbers in the Code View burning a hole in your brain (I couldn't do that)
or
1. Go to Edit > Preferences
2. Choose Linting
3. Choose HTML
4. Hit the Edit & Apply Changes button
5. Change the value for "tag-pair" from "true" to false"
6. Save and close
7. Re-open your file with the <video> and the red beacons of discontent will be gone.
The only issue with doing the above is that other items that do require a tag pair won't light up when they're missing, but the validation tool under File > Validate > Validate Current Document (W3C) or the validator at http://validator.w3.org/nu will catch them. If you validate often (maybe set a keyboard shortcut to the Validate Current Document (W3C) option, it's not much of an issue.
Copy link to clipboard
Copied
Thanks everyone for your input. I'll just live with the bug. (for sure I'll submit a bug report)
Copy link to clipboard
Copied
Hello Jon,
Thank you for pointing out the incorrect linting error message shown for </source>. I can recreate the issue locally with Dreamweaver CC 2015.
This is fixed in Dreamweaver CC 2017.
Regards
Copy link to clipboard
Copied
In my update to my web site today I noticed that it didn't flag my new code. However, it is still flagging my old code even though correct. I guess I will just ignore it. I don't have the time to go and re-enter all the audio tags. As long as it isn't squawking about my new code I will be happy
Copy link to clipboard
Copied
As long as the code is valid, you can safely ignore DW's Linting.