Request to be able to save a documentation web page as html in Safari

Originator:indiekiduk
Number:rdar://FB9206392 Date Originated:24 Jun 2021
Status:Open Resolved:No
Product:Documentation Product Version:
Classification:Suggestion Reproducible:Always
 
Hi I'd like to be able to save a developer documentation page as html in Safari. 
I hope this can be fixed as it would really help my archiving code samples to disk work flow, thanks.

I've attached an example html file of what Safari saves or follow the steps below:

Please list the steps you took to reproduce the issue:
1. On a Mac, open Safari and visit https://developer.apple.com/documentation/uikit/view_controllers/building_a_document_browser-based_app
2. Menu File->Save As->Page Source to a html file.
3. Open the page again in Safari or text editor

What did you expect to happen?
Page should be able to be displayed in Safari or text editor.

What actually happened?
Safari shows a blank white page.
In text editor, after some CSS it has the shows error message: This page requires JavaScript. Please turn on JavaScript in your browser and refresh the page to view its content.

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!