-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken href in link present on page content #37366
Comments
I’d love to take this on! If you could assign it to me, I’ll make sure to handle this issue with care. |
The problem appears to be with the {{EmbedLiveSample("extending_built-in_form_validation", "", "200px")}}
You can try this example at the {{LiveSampleLink('extending_built-in_form_validation', 'Live sample demo link')}}. |
It looks like this was already broken when it was added in 75d9aae. I guess the |
This commit will add the `EmbedLiveSample` macro to the page and fix issue mdn#37366
This example was added in #36415, and in the discussion for that PR, it's clear that using LiveSampleLink instead of EmbedLiveSample was intentional: EmbedLiveSample doesn't work in Chrome because of iframe sandboxing.
Maybe but it seems a bit unlikely that @hamishwillee would not have checked this when reviewing this PR. Also I saw that in existing (working) I know MDN pretty well and was very put off by this page. I wonder how many normal users would click through. |
@caugner This is a yari bug (not saying the code isn't at fault, but whatever is breaking it occurred after it was submitted) |
@caugner It looks like the general opinion is that this is a platform bug that LiveSampleLink doesn't work as expected. It's also quite jarring that live sample links have this warning, since live samples are authored by MDN and are trustable. Even if you use the same playground infrastructure, it should be handled differently. |
MDN URL
https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Form_validation
What specific section or headline is this issue about?
Validating forms using JavaScript
What information was incorrect, unhelpful, or incomplete?
sub-heading: Extending built-in form validation
paragraph content:
The link in "Live sample demo" is broken and redirects to the page itself.
What did you expect to see?
A link that takes the viewer to a page with the example or an iframe, within the page, containing a document with the example, just like the examples above and below the concerned section.
Do you have any supporting links, references, or citations?
https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Form_validation#validating_forms_using_javascript
scroll down to "Extending built-in form validation", last paragraph just before the start of the section "A more detailed example"
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/learn_web_development/extensions/forms/form_validation
The text was updated successfully, but these errors were encountered: