in reply to Re^2: Approved PM markup: div but not span?
in thread Approved PM markup: div but not span?
The lack of a style attribute was also my first thought; however, on reflection, it's really a lack of a style element that's the (bigger) problem.
To elaborate on that, I have a script which generates HTML containing syntax-highlighted code, that looks something like this:
<pre class="syntax-highlight"> ... <span class="variable">x</span> <span class="operator">=</span> <s +pan class="string">... ... </pre>
While I wouldn't want to change, for example, every <span class="string"> instance to, say, <span style="color: #00ff00; background-color: #000000">; I might like to add one simple block like:
<style> ... pre.syntax-highlight > span.string { color: #00ff00; background-color: #000000; } ... </style>
However, beyond that, which really just shifts the focus of where style is missing from, I do agree with you. id is not an allowed attribute for any allowed element; the lang and dir attributes are only allowed with the blockquote element; and so on.
There may be reasons why things are this way. Perhaps someone from pmdev could provide some feedback.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Approved PM markup: div but not span?
by ambrus (Abbot) on Jun 28, 2015 at 21:43 UTC | |
by kcott (Archbishop) on Jun 29, 2015 at 13:23 UTC | |
by Anonymous Monk on Jun 28, 2015 at 21:54 UTC | |
by ambrus (Abbot) on Jun 28, 2015 at 22:16 UTC | |
|
Re^4: Approved PM markup: div but not span?
by Anonymous Monk on Jun 28, 2015 at 21:47 UTC | |
by kcott (Archbishop) on Jun 29, 2015 at 13:58 UTC | |
by BrowserUk (Patriarch) on Jun 30, 2015 at 18:27 UTC | |
by Anonymous Monk on Jul 01, 2015 at 01:29 UTC |