Hi,
The new NHS A-Z widget, replacing the old one that expires in November, throws up 2 errors in a serialised DOM check. As serialised DOM checks are being used in some third-party accessibility checks on GP websites, it’s important that anything the NHS developers release for embedding on GP sites pass these checks without errors.
The errors are…
- The
allowtransparencyattribute on theiframeelement is obsolete. - Text not allowed in element
iframein this context.
The latter relates to the text “Loading...“
The only way to avoid these currently is to rebuild the code without the script, like…
<div>
<iframe id="nhsuk-toolscontent_widget_healthaz_iframe" src="https://www.nhs.uk/content-widgets/health-a-to-z?syndicatorId=9999" style="height: 600px; width: 100%; border:none; background: transparent;"></iframe>
</div>
This works now but if the target loaded by the original script changes, this will break.