SFSafariViewController url with anchor tag does not go to correct location on page
Originator: | awhig11 | ||
Number: | rdar://38252858 | Date Originated: | March 7, 2018 |
Status: | Open | Resolved: | |
Product: | iOS + SDK Safari Services | Product Version: | 11.2 |
Classification: | Reproducible: | Always |
Area: Safari Services Summary: I'm viewing an HTML page I created with anchor tags throughout the page. When I open the page with a URL with an anchor tag at the end of it, it does not properly show the page at the proper location. If you press the button to view the URL in Safari, it will show the correct part of the page. Steps to Reproduce: 1. Create a long page with an anchor with a name like "myTestAnchor" near the bottom of the page. 2. Open the Page using SFSafariViewController with a URL like: http://www.xxx.com/xxx/xxx.html#myTestAnchor Expected Results: It should render the page with the anchor location at the top of the view. Actual Results: On my page it was rendering the page much higher up on the page. I had to scroll down several screen lengths to get to correct location. Version/Build: iOS 11.2.6 Configuration: In Simulator (iPhone 8 11.2) and on my iPhone 6s (11.2.6)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!