-
Notifications
You must be signed in to change notification settings - Fork 360
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
Modify HTML source display script to conditionally insert white space based on whether the example page displays HTML in a pre
or a div
#248
Comments
Fix issue #248 by changing the source code display div elements to pre elements and updating associated comments in: * examples/coding-template/Depricated-MultipleImplementationExample-Template.html * examples/coding-template/Example-Template.html
@MichielBijl I fixed this in the templates. I will make this same change for the example pages that are currently in the review process as I close the reviews. After I do that, do you think we should make this change to any remaining example pages that are already in master? Does this change have any effect on the way the page is displayed? Or is it semantics. BTW, screen readers can not tell the difference between a pre and a div. |
It’s a semantics thing. The div we currently use has styling that mimics a So that is another thing that should happen when we make this change. |
@MichielBijl, When you are working on example.js, let's change the behavior only if the source code container is a |
Sounds good. |
pre
pre
or a div
So, excuse my ignorance, it seems this should actually be |
@MichielBijl wrote:
I would make the conditional statement in the script look for I agree with the suggestion to put |
@MichielBijl, do you think there is a possibility you could finish this before March 27? If so, it would help with the next heartbeat publication. |
@mcking65 sorry, that will be unlikely. I need to do some research before I can fix this; I don’t know enough about manipulating strings in JavaScript to pull this off right now. |
@MichielBijl, note that the request here is not to add any new white space processing but rather to omit the current white space additions if the element serving as the html source display container is a |
@mcking65 I’ll make an overview of all the things I said I’d do before next week. I’ll see if there is any room left on that list when it’s made ;). |
I do not think this issue is necessary any longer. We are consistently using |
The current template uses a
div
to display code for the example. It should use apre
element for this.This feedback is related to issue #168.
<br>
tags if the HTML source code container is a<pre>
element. Keep current behavior of formatting with white space if the source code container is a<div>
element.The text was updated successfully, but these errors were encountered: