I have a situation where I need to find all link tags on a page in order to re-write the href. This gives me a problem in one particular case which is if the link is inside a browser conditional comment, e.g:
The only way I have been able to solve this is to find all comment blocks and then manually updating their content, but I was wondering if there was a smarter way to find such link tags.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a situation where I need to find all link tags on a page in order to re-write the href. This gives me a problem in one particular case which is if the link is inside a browser conditional comment, e.g:
In this case the link is not found.
The only way I have been able to solve this is to find all comment blocks and then manually updating their content, but I was wondering if there was a smarter way to find such link tags.
Try this at the start of your program:
MicrosoftConditionalCommentTagTypes.register();
Cheers
Martin