edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev]  tag attributes in edbrowse DOM
@ 2014-07-24 15:43 Karl Dahlke
  2014-07-24 20:29 ` Adam Thompson
  0 siblings, 1 reply; 6+ messages in thread
From: Karl Dahlke @ 2014-07-24 15:43 UTC (permalink / raw)
  To: Edbrowse-dev

> we don't currently support the type attribute for script tags

Well I was able to change this in 2 lines of code, so I did.
type and language are now present in the script object.
See if that helps, or perhaps another small
incremental change is needed.

> I was wondering how difficult it would be to load all attributes for tags
> into the DOM, not just the ones which have direct effect on the browser.

Well I've wanted to do this for a long time.
It would have been easy, if I had done it from the start.
Now I could still do it but the hard part would be taking out
all the places all over the code where I look for and store certain attributes.
Or maybe it's ok to store them twice I'd have to look into that.
Anyways it is something we definitely want to do someday.

Karl Dahlke

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Edbrowse-dev]  tag attributes in edbrowse DOM
@ 2014-07-31  7:27 Karl Dahlke
  2014-07-31 11:19 ` Adam Thompson
  0 siblings, 1 reply; 6+ messages in thread
From: Karl Dahlke @ 2014-07-31  7:27 UTC (permalink / raw)
  To: Edbrowse-dev

> So they are overloading the <script> tag?

I think they have done so almost from the begining.

> Is edbrowse also trying to execute things that it should not

I don't believe so.
If the language attribute is given I require it to say javascript.
	<script language=javascript>
If no language attribute is given I assume javascript,
which is what the documentation says to do.
It's possible that I should also be checking the type attribute.


Karl Dahlke

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Edbrowse-dev] tag attributes in edbrowse DOM
@ 2014-07-24 13:55 Adam Thompson
  2014-07-30 14:33 ` Chris Brannon
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Thompson @ 2014-07-24 13:55 UTC (permalink / raw)
  To: Edbrowse-dev

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

Hi all,

Whilst browsing various documentation stored in Atlassian's Confluence wiki
system [1], I noticed that most of the code examples weren't showing up.
Closer investigation shows they use something which looks like a version of the Syntax Highlighter script
[2] when generating code examples.

This script uses the <script> tag in a strange way,
essentially to store code without html escaping it.
I think it then accesses the DOM to look for the special "syntaxhighlighter"
type attribute of script tags then renders this content.
It also requires a special brush attribute for these tags.
Obviously, since we don't currently support the type attribute for script tags
(that I can see) and certainly don't support arbitrary attributes,
this doesn't work.

I was wondering how difficult it would be to load all attributes for tags into
the DOM, not just the ones which have direct effect on the browser.
I've no idea if this would fix the non-functioning syntax highlighter script (I
suspect probably not), but it would give us a more standard DOM representation.

Cheers,
Adam.
[1] https://www.atlassian.com/software/confluence
[2] http://alexgorbatchev.com/SyntaxHighlighter/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-31 11:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-24 15:43 [Edbrowse-dev] tag attributes in edbrowse DOM Karl Dahlke
2014-07-24 20:29 ` Adam Thompson
  -- strict thread matches above, loose matches on Subject: below --
2014-07-31  7:27 Karl Dahlke
2014-07-31 11:19 ` Adam Thompson
2014-07-24 13:55 Adam Thompson
2014-07-30 14:33 ` Chris Brannon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).