Skip to main content
Inspiring
Nov 4, 2016 12:44 AM UTC
Answered

Dream Weaver claims </source> tag not there.

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.

This topic is closed to new replies. Start a new post to keep the conversation going.
Jon Fritz
Jon FritzCorrect answer
Community Expert
Nov 4, 2016 1:14 PM UTC

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.

7 replies

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
Nov 4, 2016 1:14 PM UTC

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.

Translate
Inspiring
Nov 5, 2016 1:31 AM UTC

Thanks everyone for your input. I'll just live with the bug. (for sure I'll submit a bug report)

Translate
Inspiring
Nov 4, 2016 8:41 AM UTC

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.

https://www.w3.org/TR/html5/syntax.html#void-elements

Translate
BenPleysier
Community Expert
Community Expert
Nov 4, 2016 5:05 AM UTC

Please make it known to those that can do something about it Feature Request/Bug Report Form

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!