LIGHTROOOM: Errors in generated web page syntax

  • 1
  • Problem
  • Updated 6 years ago
  • (Edited)
I have recently started to use Lightroom to generate some pages for one of the websites that I manage and find that it is generating code with incorrect syntax and other errors.

Although browsers like Internet Explorer 6 and Netscape 7 are very forgiving, other browsers like Opera and Netscape adhere strictly to W3C standards and so, to ensure that my web pages can be read on all browsers and also to ensure that search engine spiders can correctly read all my pages. I try to ensure that my pages strictly comply with WC3 standards.

Below are the faults that I have found; are there any plans to correct these?

Douglas Gregor

1. All web pages generated contains two elements (xlmns and xml:lang) not supported by the document type, viz:
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"]
[html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"]

2. The syntax of all your html links is incorrect. I have corrected this in my documents placing the three elements
• the 'a' tag
• the 'img' tag
• the'/a' tag
inside a single 'div' ... '/div' element, rather than split over multiple elements

3. The syntax of your contact details is also incorrect: the 'p'...'/p' tags should be outside the 'a' ...'/a' tags, not inside as you have placed them.

The consequence of each of these is that they generate errors when checked by html validation software.

Your code, for example reads:
[div class="thumbnail borderTopLeft" etc etc]
[div class="itemNumber"]1[/div]
[a href="content/etc etc"]
[div style="margin-left:15px; margin-top:51px;"]
[div class="dropShadow"]
[div class="inner"]
[img src="content/ etc etc /]
[/div]
[/div]
[/div]
[/a]
[/div]

My code does the same thing but reads:
[div class="thumbnail borderTopLeft" etc etc]
[div class="itemNumber">1[/div]
[div style="margin-left:15px; margin-top:51px;"]
[div class="dropShadow"]
[div class="inner"]
[a href="content/ etc etc ] [img src="content/ etc etc /] [/a ]
[/div]
[/div]
[/div]
[/div]
Photo of D C Gregor

D C Gregor

  • 1 Post
  • 0 Reply Likes

Posted 6 years ago

  • 1

Be the first to post a reply!