Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7989543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:46:53+00:00 2026-06-04T12:46:53+00:00

In Seaside, in all those renderContentOn: methods, I can use the HTML canvas object

  • 0

In Seaside, in all those renderContentOn: methods, I can use the HTML canvas object to assemble my DOM tree.

I am writing a bunch of helpers for my components currently, because I’m using Twitter Bootstrap for the styling and don’t want to write all that boilerplate code (<div>s en mas) all the time.

For the way this is setup, the easiest way for me is to simply (I want to avoid using with: aBlock in those helpers) write out the HTML for the wrapping DIVs like this:

html html: '<div class="control-group">'.

Is there any reason for me not to do this? Any downsides?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:46:55+00:00Added an answer on June 4, 2026 at 12:46 pm

    There are various advantages in using the HTML canvas:

    • The HTML canvas ensures valid tags, a valid tag structure, that all tags are properly closed (at compile time), and that contents is properly escaped.
    • The HTML canvas ensures valid attributes, that all attributes are properly closed, and that contents is properly escaped.
    • As a consequence of the above two the HTML canvas automatically avoids the possibility of cross-site scripting (XSS) vulnerabilities.
    • The HTML canvas enables better reusability by enabling composition of tags (simple function calls), presenters (renderOn: in Objects), and components (renderContentOn: of components).
    • The HTML canvas avoids generating unnecessary whitespaces.
    • The use of HTML canvas enables one to use the standard tools the Smalltalk IDE provides on HTML code: senders, implementors, refactoring engine (extract to method, extract to component, inline method, automatic rewrite, …), etc.

    I agree that in some rare cases it is not worth to use HTML canvas: For example, when large static junks coming from an external source need to be embedded into a page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to do something like this in seaside 2.9 html button onClick: (html
I've been thinking about writing a web framework (think Struts, Ruby on Rails, Seaside)
Basically, I want to translate the following into Seaside Smalltalk: $(.myDiv).bind('click', function(e) { console.log(e);
I'm newbie on Smalltalk. I'm going to try Seaside framework. And Pharo seems best
Dropdown menu (the right one, with city names like gudauri) here dev.holiday.ge/xhtml/main.html must look
I have a number of setter methods which take an enum. These are based
I'm still trying to get to understand how Javascript is wrapped in Seaside, say
How does one remove a method in Squeak! Smalltalk? I'm using a Seaside 2.8.4
I have a regular expression that I use to grab data between two sets
I am planning a Seaside app to hold text, a single instance which may

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.