I discovered a way to get divs and spans and the like to nest
properly. Necessary because the new box code broke some things. Any
way, this led to some other problems and I ended up digging in and
hacking the styles function. Anyway, I'd like to propose a change to
how divs and the like handle styles.

Currently, styles are limited to default allowed attrs (BOLTattrs) and
you create a custom div like this

<div background='blue' border="1px solid green'>TEXT</div>

This allows some filtering of the styles that can be entered (probably
why I did this). However, I'm not sure what the security risks might
be to this...

The code however is much cleaner and simpler to change the text to this:

<div style='background: blue; border: 1px solid green'>TEXT</div>

It also has the advantage of allowing you to cut and paste
directly--ie, standard html/css format. It broke some things on my
site, but it was easy to fix.

Any thoughts?

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to