Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.0.2
-
None
Description
If there is some text in parenthesis anywhere in the tag being parsed for sublink URL, WebEPG will take the text withing the parenthesis and interpret is as parameters to a javascript call. It does not make a distinction of where parenthesis occur.
For example in the following tag:
<a title="The Simpsons (Episode 3)" href="detail.aspx?showId=128301">The Simpsons</a>
the extracted URL is "Episode 3" instead of "detail.aspx?showId=128301".
h4. Additional Information
Either we there should be a way for the grabber designer to specify which attributes of the tag to search, or else only attributes that may actually be used to navigate to another page should be considered for URL extraction.
In the following situations:
<a onclick="refresh_banner(this);" href="details.aspx?showId=12345">
and
<a onclick="showDetailsPage(12345);" href="javascript:void()">
using the first approach can always return the correct URL because the grabber designer can specify whether onclick or href should be used. The second approach is unable to determine which attribute to use.
See: http://forum.team-mediaportal.com/webepg-136/devs-help-sublink-search-bug-missunderstanding-72611/
For example in the following tag:
<a title="The Simpsons (Episode 3)" href="detail.aspx?showId=128301">The Simpsons</a>
the extracted URL is "Episode 3" instead of "detail.aspx?showId=128301".
h4. Additional Information
Either we there should be a way for the grabber designer to specify which attributes of the tag to search, or else only attributes that may actually be used to navigate to another page should be considered for URL extraction.
In the following situations:
<a onclick="refresh_banner(this);" href="details.aspx?showId=12345">
and
<a onclick="showDetailsPage(12345);" href="javascript:void()">
using the first approach can always return the correct URL because the grabber designer can specify whether onclick or href should be used. The second approach is unable to determine which attribute to use.
See: http://forum.team-mediaportal.com/webepg-136/devs-help-sublink-search-bug-missunderstanding-72611/