ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
[xml-dev] Re: Why Are Inner and Outer Unclean? (WAS RE: [xml-dev] Underwhelmed (WAS: [xml-dev] XOM micro tutorial))
by Simon St.Laurent other posts by this author
Sep 23 2002 8:24PM messages near this date
[xml-dev] Why Are Inner and Outer Unclean? (WAS RE: [xml-dev] Underwhelmed (WAS: [xml-dev] XOM micro tutorial)) | [xml-dev] Re: Why Are Inner and Outer Unclean? (WAS RE: [xml-dev] Underwhelmed (WAS: [xml-dev] XOM micro tutorial))
Len asks:
>  I'm sort of fond of inner functions, at least, they 
>  don't seem to be making my life harder as an ASP 
>  relational hacker.
>  
>  Why object to them?   Just curious.

In DHTML, my general complaint was that developers used these features
to make broad changes without thinking about the object model they were
manipulating.  Most of the folks I was working with knew HTML better
than scripting, and used the innerHTML and outerHTML functions to slap
in new HTML rather than make smaller and often more useful changes - or
use CSS and CSS properties, which usually was a lot more sensible.  

Rebuilding a menu system that's been written that way is really painful;
I only did that once, but won't forget it.

In the hands of people who do know what they're doing, it's not nearly
as much of a nuisance, but I rarely see feature docs that explain all
that, including those for the innerXML function [1]. 

Right now I'm considering how to do something similar with MOE, as I'm
adding a parser, and I think I may keep the parsing and replacement
stages separate.  Less productive for some, but seems wiser to me.


[1] -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/
html/frlrfsystemxmlxmlnodeclassinnerxmltopic.asp  (I hope there are more
and better docs, since this doesn't even make clear what happens if the
parser chokes on what it's fed.)


-------------
Simon St.Laurent - SSL is my TLA
http://simonstl.com may be my URI
http://monasticxml.org may be my ascetic URI
urn:oid:1.3.6.1.4.1.6320 is another possibility altogether

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Bullard, Claude L (Len)
Simon St.Laurent
Simon St.Laurent

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved