HTML rendering is the process by which a web browser parses HTML and CSS and draws it on the user's screen.
Questions tagged [html-rendering]
373 questions
53
votes
7 answers
nodejs send html file to client
I use this function to send a html file to the client, but in the client, I get nothing (blank page) without error. Is something wrong? please help.
var express = require('express');
var fs = require('fs');
var app = express();
…

user3044147
- 1,374
- 5
- 14
- 23
38
votes
7 answers
Pure Java HTML viewer/renderer for use in a Scrollable pane
What pure Java HTML viewers and renderers are available? The requirements are:
It should implement the JComponent interface to be placed into Scrollable pane.
It should be preferably a free solution; open source is a plus.
Its availability as…

dma_k
- 10,431
- 16
- 76
- 128
32
votes
1 answer
Convert HTML to PDF using HtmlRenderer
I am looking to use HtmlRenderer to convert an HTML file to a PDF file. I have seen it being mentioned on several sites that it is possible. However, I don't seem to be able to find any basic sample code to do this.
I have added the following NuGet…

slayernoah
- 4,382
- 11
- 42
- 73
21
votes
4 answers
Client Side HTML MVC Rendering vs Server Side Rending via NodeJS
We are looking for options on our team to decide between a Angular based client side MVC approach and a server side NodeJS / ExpressJS server side render approach.
Our Angular app downloads as one index.html and makes XHR requests to populate the…

Adam Parrish
- 439
- 1
- 5
- 13
20
votes
2 answers
rendering html to png (server-side)
I have a workflow model.
Internet Explorer doesn't support some features required for model editing functionality
(and regular user doesn't need it).
I want a read-only preview of my model.
Is it possible to server-side render my HTML to an image?
I…

jonny
- 1,326
- 9
- 44
- 62
16
votes
2 answers
Program that convert html to image
Is there a ready-to-use program, that I can run from my web application, to convert an HTML file to an image? Preferably using Webkit, or another mature browser engine?
I tried wkhtmltoimage, but it doesn't render backgrounds correctly (while…

Djangonaut
- 5,511
- 7
- 40
- 53
12
votes
4 answers
Vertical alignment of text in container: WebKit vs Firefox
The problem is that Firefox and WebKit based browsers seem to align text vertically in different ways when contained in an element that has an even height/line-height and the font-size is uneven (or vice versa). I have looked at some similar…

Olaj
- 1,782
- 4
- 19
- 36
12
votes
2 answers
How do I avoid double URL encoding when rendering URLs in my website?
Users provide both properly escaped URLs and raw URLs to my website in a text input; for example I consider these two URLs equivalent:
https://www.cool.com/cool%20beans
https://www.cool.com/cool beans
Now I want to render these as tags later,…

Cory Kendall
- 7,195
- 8
- 37
- 64
10
votes
2 answers
server side browser
I was wondering if it is possible to run a browser (specifically a browser engine) on the server side. I do not just mean to render a page but to keep a browser open for some time, run some JS, do some clicks or press some keys and meanwhile grab…

Tobias Müller
- 145
- 1
- 8
10
votes
3 answers
Setting up TkHtml (a Tk widget) with Python
I need a simple way to render HTML pages retrieved with Requests (python-requests.org). I'm using Python 3.2 on Windows.
I was using tkinter, and I found a Tk widget called TkHtml. It is described at http://tkhtml.tcl.tk/ and a DLL is downloadable…

A Coder
- 475
- 1
- 6
- 16
9
votes
2 answers
Unexplainable space above BUTTON inside DIV
Preface: I've read lots of articles about images inside a div having a strange space around them, etc.
Example #1: Unwanted padding-bottom of a div
Example #2: https://developer.mozilla.org/en/Images,_Tables,_and_Mysterious_Gaps
Example #3: cannot…

Fumbles
- 93
- 5
9
votes
3 answers
How to optimally render large amounts of DOM elements using javascript?
On a web page I have a quite large list of items (say, product cards, each contains image and text) - about 1000 of them. I want to filter this list on client (only those items, which are not filtered away should be shown), but there is a rendering…

Alex Zaretsky
- 93
- 1
- 1
- 5
8
votes
2 answers
C# API for puppeteer
Is there any C# API for using Puppeteer?
Use case: need to get the coordinates/bounding box for HTML. Could have used Selenium + PhantomJS, but given the instability issues of PhantomJS, we want to try out Puppeteer.
Can someone please help?

Harika Rayarapu
- 81
- 1
- 1
- 2
8
votes
4 answers
Web Components rendering performance
Is Web Components give better performance when compared to Native HTML elements. Since each elements getting mutated only when getting attached to DOM. So, expensive operations inside Element callbacks leads to poor performance.
I wrote one sample…

john
- 859
- 2
- 12
- 25
8
votes
2 answers
Render HTML to a Google Doc using app script?
We work using Google Drive, Docs, etc.
Background of the problem: One of our departments needs to print hundreds of emails to file away, with page information included. We currently have a Google web app that takes the contents of an gmail thread,…

A Kirby
- 83
- 1
- 3