Maybe this happens because you are wrapping the a-tag around div and p tags. This is perfectly valid in HTML5 (well, now it's just called HTML, but in this case I'll call it HTML5 for no confusion), but I'm not sure if some of the older browsers will mess up some small parts of the DOM like you describe above.
Does this only happen in some browsers? And if so, which ones?
The code when it fails still wraps the a tag around all the h1, h2 and p tags. So with a change to my CSS I've managed to fix the problem. It still fails occasionally in Firefox 3.6 and Safari 4.1, but with the following additions to my CSS it still displays perfectly and links correctly.
I previously just had:
#project_gallery #project h1 { styles, etc }
Now I've added the following as well, this applies when the a tag doesn't wrap all the h1, h2 and p tags:
XSLT link values are escaping the link
I have an XSLT project gallery, that is populated by the child nodes.
Sometimes on the front end the link isn't pulling in all of the values to display within the link.
This should appear as a link on the front end with the <a>img, h2 text, page title value, and p text</a>
But sometimes the link is appearing as <a>img</a> h2 text, page title value, p text
Any suggestions to help fix this?
Cheers,
JV
Hi JV
Maybe this happens because you are wrapping the a-tag around div and p tags. This is perfectly valid in HTML5 (well, now it's just called HTML, but in this case I'll call it HTML5 for no confusion), but I'm not sure if some of the older browsers will mess up some small parts of the DOM like you describe above.
Does this only happen in some browsers? And if so, which ones?
/Kim A
Hi Kim,
The code when it fails still wraps the a tag around all the h1, h2 and p tags. So with a change to my CSS I've managed to fix the problem. It still fails occasionally in Firefox 3.6 and Safari 4.1, but with the following additions to my CSS it still displays perfectly and links correctly.
I previously just had:
Now I've added the following as well, this applies when the a tag doesn't wrap all the h1, h2 and p tags:
It's a bandaid fix, but it's still working. A good solution for older browsers.
Cheers,
JV
is working on a reply...