Taiwan referendum bill angers China
But it risks the wrath of China, which has vowed to attack the island if it declares independence.
The complex referendum bill was passed in a parliament session that stretched late into the night. It has to be signed into law by pro-independence President Chen Shui-bian, a step seen as a formality.